cmake_minimum_required(VERSION 3.16)


find_package(OpenMP)


project(chesspi LANGUAGES CXX)

set(CMAKE_CXX_STANDARD 17)
set(CMAKE_CXX_STANDARD_REQUIRED ON)

set(PRJ_SOURCES
    main.cpp
        chesspi.h
        chesspi_ai.cpp
        chesspi_rules.cpp
)


add_executable(chesspi ${PRJ_SOURCES} )

if(OPENMP_CXX_FOUND)
    target_compile_options(chesspi PRIVATE ${OpenMP_CXX_FLAGS} )
    target_link_libraries(chesspi PRIVATE ${OpenMP_CXX_LIBRARIES} )
    message(${OpenMP_CXX_FLAGS})
endif()

